package yx;

public class WeeklyLog extends Weekly implements Cloneable{
	public WeeklyLog() {
		Name = "小龙女";
		Attachment = new Attachment();
		Date = "第16周";
		Content = "周一:整理上周各项目进展报告";
	}
	public Attachment getAttachment() {
		return Attachment;
	}
	public void setAttachment(Attachment attachment) {
		Attachment = attachment;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public String getDate() {
		return Date;
	}
	public void setDate(String date) {
		Date = date;
	}
	public String getContent() {
		return Content;
	}
	public void setContent(String content) {
		Content = content;
	}
	public WeeklyLog weeklyClone() {
		WeeklyLog weeklyLog = null;
		try {
			weeklyLog = (WeeklyLog)super.clone();
			weeklyLog.setName(new String(Name));
			weeklyLog.setDate(new String(Date));
			weeklyLog.setAttachment(new Attachment());
			weeklyLog.setContent(new String(Content));
		}catch (CloneNotSupportedException e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		return weeklyLog;
	}
	@Override
	public String toString() {
		return "WeeklyLog [Attachment.name=" + Attachment.getName() + ", Name=" + Name + ", Date=" + Date + ", Content=" + Content
				+ "]";
	}
	
}
